﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace _8Group.MES.Model.WM仓储管理
{

    /// <summary>
    /// 库位明细表
    /// </summary>
    public class WM_Stock_Detail : Entity<int>
    {
        /// <summary>
        /// 产品编码
        /// </summary>
        public string ItemCode { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string ItemName { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string UnitOfMeasure { get; set; }
        /// <summary>
        /// 批次 ID
        /// </summary>
        public int BatchId { get; set; }
        /// <summary>
        /// 批次编号
        /// </summary>
        public string BatchCode { get; set; }
        /// <summary>
        /// 生产日期
        /// </summary>
        public DateTime ProducedTime { get; set; }
        /// <summary>
        /// 客户 ID
        /// </summary>
        public int ClientId { get; set; }
        /// <summary>
        /// 客户编码
        /// </summary>
        public string ClientCode { get; set; }
        /// <summary>
        /// 客户名称
        /// </summary>
        public string ClientName { get; set; }
        /// <summary>
        /// 客户简写
        /// </summary>
        public string ClientNick { get; set; }
        /// <summary>
        /// 仓库 ID
        /// </summary>
        public int WarehouseId { get; set; }
        /// <summary>
        /// 仓库编号
        /// </summary>
        public string WarehouseCode { get; set; }
        /// <summary>
        /// 仓库名称
        /// </summary>
        public string WarehouseName { get; set; }
        /// <summary>
        /// 库区 ID
        /// </summary>
        public int LocationId { get; set; }
        /// <summary>
        /// 库区编号
        /// </summary>
        public string LocationCode { get; set; }
        /// <summary>
        /// 库区名称
        /// </summary>
        public string LocationName { get; set; }
        /// <summary>
        /// 库位 ID
        /// </summary>
        public int AreaId { get; set; }
        /// <summary>
        /// 库位编号
        /// </summary>
        public string AreaCode { get; set; }
        /// <summary>
        /// 库位名称
        /// </summary>
        public string AreaName { get; set; }
        /// <summary>
        /// 库存数量
        /// </summary>
        public double Quantity { get; set; }
        /// <summary>
        /// 库存保留数量
        /// </summary>
        public double QuantityReserved { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreateBy { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }
        /// <summary>
        /// 更新人
        /// </summary>
        public string? UpdateBy { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
    }
}
